// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueI18n from 'vue-i18n'
import store from './store'

Vue.use(VueI18n)

const i18n = new VueI18n({
  locale: store.getters.lang,
  messages: {
    'cn': require('./assets/common/lang/cn'),
    'en': require('./assets/common/lang/en')
  }
})
Vue.prototype.i18n = i18n

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  template: '<App/>',
  components: { App }
})
